package com.example.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.common.IdParam;
import com.example.demo.domain.entity.VojObjectiveQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.dto.ObjectiveQuestionDTO;
import com.example.demo.dto.VojObjectiveQuestionsListDto;
import com.example.demo.param.voj.VojObjectiveQuestionsListParam;
import com.example.demo.param.voj.VojObjectiveQuestionsSaveParam;

import java.util.List;

/**
* @author 00774904
* @description 针对表【voj_objective_questions】的数据库操作Service
* @createDate 2023-11-17 16:43:55
*/
public interface VojObjectiveQuestionsService extends IService<VojObjectiveQuestion> {

    void save(VojObjectiveQuestionsSaveParam param);

    void delete(IdParam param);

    Page list(VojObjectiveQuestionsListParam param);

    void setPublic(IdParam param);

    List<VojObjectiveQuestionsListDto> getProblemByIds(List<Long> ids);

    List<ObjectiveQuestionDTO> getObjectiveByRandom(Integer limit);

}
